package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;

/**
 * @author zby
 * @created 2024-06-25 9:17
 * @description  自定义股票业务异常类
 */
@Getter
public class StockException extends RuntimeException{

    /**
     * 通用响应接口
     */
    private final Code code;

    public StockException(Code code) {
        this.code = code;
    }


}
